package cn.jiyun.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_products")
@ApiModel(value="GoodsProducts对象", description="")
public class GoodsProducts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品信息id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品列表关联外键")
    private Integer gid;

    @ApiModelProperty(value = "商品属性")
    private String goodType;

    @ApiModelProperty(value = "商品标签")
    private String goodLabel;

    @ApiModelProperty(value = "是否新品")
    private String newProductFlag;

    @ApiModelProperty(value = "是否促销")
    private String isOnSale;

    @ApiModelProperty(value = "促销折扣")
    private String promotionDiscount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "生效起始日期")
    private LocalDateTime startDateEffective;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "生效结束日期")
    private LocalDateTime endDateEffective;

    @ApiModelProperty(value = "每人每天限购数")
    private Integer purchaseLimit;

    @ApiModelProperty(value = "促销上午起始时间")
    private LocalTime startAmTime;

    @ApiModelProperty(value = "促销上午结束时间")
    private LocalTime endAmTime;

    @ApiModelProperty(value = "促销下午起始时间")
    private LocalTime startPmTime;

    @ApiModelProperty(value = "促销下午结束时间")
    private LocalTime endPmTime;


}
